using System;
namespace MyApi.Entity
{
    public class UserRoles:BaseEntity
    {
        //用户Id
        public int UserId { get; set; }
        //角色Id
        public int RoleId { get; set; }

        //创建主外键
        public virtual User User{get;set;}
        public virtual Roles Role{get;set;}
    }    
}